import { Comparable } from "./interfaces/Comparable"
import { randomInt } from "../common/Calculate"
import { manager } from "../common/ImageManager";

class Girl implements Comparable<Girl>{
    name: string;
    fenghao: string;
    score: number;
    img: string;
    constructor(name: string, fenghao: string, score: number) {
        this.name = name;
        this.fenghao = fenghao;
        this.score = score;
        // this.img = manager.images[randomInt(0, manager.images.length)];
        this.img = manager.getByName(name);
    }
    compare(other: Girl) {
        return this.score > other.score;
    }
}

export { Girl }